import * as React from 'react'; import { Flex, ViewProps, SelectField, TextField } from '@aws-amplify/ui-react'; export interface ViewPropControlsProps extends ViewProps { setAriaLabel: (value: React.SetStateAction) => void; setWidth: (value: React.SetStateAction) => void; setMaxWidth: (value: React.SetStateAction) => void; setHeight: (value: React.SetStateAction) => void; setColor: (value: React.SetStateAction) => void; setBackgroundColor: ( value: React.SetStateAction ) => void; setBoxShadow: (value: React.SetStateAction) => void; setPadding: (value: React.SetStateAction) => void; setBorder: (value: React.SetStateAction) => void; setBorderRadius: ( value: React.SetStateAction ) => void; setAsElementType: (value: React.SetStateAction) => void; } export interface ViewPropControlsInterface { (props: ViewPropControlsProps): JSX.Element; } export const ViewPropControls: ViewPropControlsInterface = ({ ariaLabel, as: asElementType, backgroundColor, border, borderRadius, boxShadow, color, height, maxWidth, padding, setAriaLabel, setAsElementType, setBackgroundColor, setBorder, setBorderRadius, setBoxShadow, setColor, setHeight, setMaxWidth, setPadding, setWidth, width, }) => { return ( setAsElementType(event.target.value as ViewProps['as']) } > setAriaLabel(event.target.value)} /> setBackgroundColor(event.target.value)} label="Background Color" /> setBorder(event.target.value)} label="Border" /> setBorderRadius(event.target.value)} label="Border Radius" /> setBoxShadow(event.target.value)} label="Box Shadow" /> setColor(event.target.value)} label="Color" /> setHeight(event.target.value)} label="Height" /> setMaxWidth(event.target.value)} label="Max Width" /> setPadding(event.target.value)} label="Padding" /> setWidth(event.target.value)} label="Width" /> ); };